import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
// const Login = () => import('../pages/Login')
const Login = () => import('../pages/Login')
const Home = () => import('../pages/Home')
const Baojing = () => import('../pages/Baojing')
const People = () => import('../pages/People')
const User = () => import('../pages/User')
const TaDiao = () => import('../pages/TaDiao')
const HuanJing = () => import('../pages/HuanJing')
const JiKeng = () => import('../pages/JiKeng')
const Car = () => import('../pages/Car')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '登录',
      component: Login
    },
    {
      path: '/home',
      name: '主页',
      component: Home
    },
    {
      path: '/baojing',
      name: '报警',
      component: Baojing
    },
    {
      path: '/people',
       name: '人员',
      component: People
    },
    {
      path: '/user',
       name: '个人中心',
      component: User
    },
    {
      path: '/tadiao',
       name: '塔吊',
      component: TaDiao
    },
    {
      path: '/huanjing',
       name: '环境',
      component: HuanJing
    },
    {
      path: '/jikeng',
       name: '基坑',
      component: JiKeng
    },
    {
      path: '/car',
       name: '车辆识别',
      component: Car
    },

    

    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },

  ]
})
